package com.aceleeyy.sevenstar.controller;

import com.aceleeyy.sevenstar.dao.UserInfoMapper;
import com.aceleeyy.sevenstar.model.UserInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;


/**
  * 基类接口
  *
  * @author: Ace Lee
  * @date: 2019/3/21 10:18
  * @version 1.0
  */
@CrossOrigin(origins = "*", maxAge = 3600)
@Slf4j
public abstract class BaseController {

    @Autowired
    private UserInfoMapper userInfoMapper;

    protected UserInfo getUserByOpenid(String openid){
        return userInfoMapper.selectUserByOpenid(openid);
    }


}